package com.njym.entity;

import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableLogic;
import com.baomidou.mybatisplus.annotations.TableName;
import com.baomidou.mybatisplus.enums.IdType;

import java.io.Serializable;
import java.util.ArrayList;
import java.util.List;

/**
 * 支付方式实体
 *
 * @author zhy
 * @create 2018-08-21 18:29
 **/
@TableName("sys_payment_mode")
public class SysPaymentMode extends Model<SysPaymentMode> {
    /**
     * 主键
     * 主键
     * isNullAble:0
     */
    @TableId(type = IdType.ID_WORKER_STR)
    private String id;

    /**
     * 机构代码
     * isNullAble:1
     */
    private String orgId;

    /**
     * 支付方式code
     */
    private String modeCode;

    /**
     * 支付名称
     * isNullAble:1
     */
    private String modeName;

    /**
     * 图片地址
     * isNullAble:1
     */
    private String picUrl;

    /**
     * 拼音码
     * isNullAble:1
     */
    private String inputCode;

    /**
     * 排序
     * isNullAble:1
     */
    private Integer sortNo;

    /**
     * 每个支付方式所对应的所有配置项
     */
    @TableField(exist = false)
    private List<SysPaymentConfig> sysPaymentConfigs = new ArrayList<>();

    /**
     * 配置名称所对应的医院信息
     */
    @TableField(exist = false)
    private SysOrganization sysOrganization = new SysOrganization();

    /**
     * 逻辑删除 0 否 1是
     * isNullAble:1
     */
    @TableLogic
    private Integer deleted;

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getOrgId() {
        return orgId;
    }

    public void setOrgId(String orgId) {
        this.orgId = orgId;
    }

    public String getModeCode() {
        return modeCode;
    }

    public void setModeCode(String modeCode) {
        this.modeCode = modeCode;
    }

    public String getModeName() {
        return modeName;
    }

    public void setModeName(String modeName) {
        this.modeName = modeName;
    }

    public String getPicUrl() {
        return picUrl;
    }

    public void setPicUrl(String picUrl) {
        this.picUrl = picUrl;
    }

    public String getInputCode() {
        return inputCode;
    }

    public void setInputCode(String inputCode) {
        this.inputCode = inputCode;
    }

    public Integer getSortNo() {
        return sortNo;
    }

    public void setSortNo(Integer sortNo) {
        this.sortNo = sortNo;
    }

    public Integer getDeleted() {
        return deleted;
    }

    public void setDeleted(Integer deleted) {
        this.deleted = deleted;
    }

    public List<SysPaymentConfig> getSysPaymentConfigs() {
        return sysPaymentConfigs;
    }

    public void setSysPaymentConfigs(List<SysPaymentConfig> sysPaymentConfigs) {
        this.sysPaymentConfigs = sysPaymentConfigs;
    }

    public SysOrganization getSysOrganization() {
        return sysOrganization;
    }

    public void setSysOrganization(SysOrganization sysOrganization) {
        this.sysOrganization = sysOrganization;
    }

    @Override
    protected Serializable pkVal() {
        return id;
    }

}
